package com.mybatisflex.demo.entity;

import com.mybatisflex.annotation.EnumValue;
import lombok.Getter;

/**
 * @author 王帅
 * @since 2023-08-03
 */
@Getter
public enum TypeEnum {

    A(0, "AA"),
    B(1, "BB"),
    C(2, "CC");

    private final Integer type;
    @EnumValue
    private final String value;

    TypeEnum(Integer type, String value) {
        this.type = type;
        this.value = value;
    }

    @Override
    public String toString() {
        return value;
    }
}